import request from '@/utils/request/request';
import requestFile from '@/utils/request/requestForFile';

// 分页查询（未确认状态）
// eslint-disable-next-line import/prefer-default-export
export function selectNormalInquiryPage(data: any) {
  return request.post(
    '/api/procurement/require/inquiry/selectNormalInquiryPage',
    data
  );
}
// 确认
export function confirem(data: any) {
  return request.post('/api/procurement/require/inquiry/confiremInquiry', data);
}
// 编辑
export function edit(data: any) {
  return request.put('/api/procurement/require/inquiry', data);
}

// 批量更新
export function batchUpdate(data: any) {
  return request.post('/api/procurement/require/inquiry/batchUpdate', data);
}

// 导出excel
export function exportFile(params: any) {
  return requestFile.get('/api/procurement/require/inquiry-item/export', {
    responseType: 'blob',
    params,
  });
}
// 详情 列表
export function pageByInquiryNo(data: any) {
  return request.post(
    '/api/procurement/require/inquiry-item/pageByInquiryNo',
    data
  );
}
